#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);
    gl = new PAINEL_OPEN_GL(this);
    ui->gridLayout->addWidget(gl, 0, 0, 4, 1);
    gl->setSize(640,480);
    gl->render();
}

Widget::~Widget()
{
    delete gl;
    delete ui;
}

void Widget::on_btnSair_clicked()
{
    this->close();
}


void Widget::on_nudAngle_valueChanged(int value)
{
    gl->angleY = value;
    gl->render();
}
